<?php

require_once 'Base.php';

class SellerModel extends Base {
	
	public function getList($where, $page= 0, $pagesize= 10){
		
		if($where) $this->where($where);
		
		if($pagesize) $this->limitPage($page, $pagesize);
		
		
		return $this->select();
	}
	
	public function getCount($where=[]){
		
		return $this->count($where);
		
	}
	
	public function getOne($where = []){
		
		//$where['id = ?'] = 1;
		if($where) $this->where($where);
		
		return $this->fetch();
	}
}
